package com.ydc.ln.tutorial;

import java.util.Hashtable;
import java.util.Map;

public class MapTest {
	public static void main(String[] args) {
		Map<String, String> strMap = new Hashtable<String, String>();
		for (int i=0; i<strMap.size(); i++) {
			System.out.println(strMap.get(String.valueOf(i)));
		}
	}
}

class TestA {
	private Map<String, String> strMap = new Hashtable<String, String>();
	
	public TestA(Map<String, String> strMap) {
		this.strMap = strMap;
		for(int i=0; i<10; i++) {
			strMap.put(String.valueOf(i), "value" + i);
		}
	}
}
